/*
 *  AutoE.h
 *  AutoEllips
 *
 *  Created by Simon Martin on 16/11/2009.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */
#ifndef _AUTOELLIPS_

#include "ellipsincludes.h"
#include "film.h"
#include "CalcPsiDelta.h"

int AutoE(WINDOW *mainwnd, ellipspar_t *ellipsparams);
int WaitForRef(HANDLE hDevice,u3CalibrationInfo caliInfo);
int dWaitForCount(HANDLE hDevice,u3CalibrationInfo caliInfo); // uses digital input to look for count going to low state
int dWaitForRef(HANDLE hDevice,u3CalibrationInfo caliInfo,WINDOW *mainwnd); // uses digital input to look for reference going to a low state.

// ellipsometer uses low voltage for logical 1 and high voltage for logical 0. Define some values to help prevent slips
#define E_TRUE 0
#define E_FALSE 1

// Define channel numbers for Labjack to ellipsometer
#define E_REF 06
#define E_COMP 04
#define E_COUNT 05
#define _AUTOELLIPS_
#endif
